﻿@model IEnumerable<BG.DAL.Model.Manufacturer>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            sManufacturerName
        </th>
        <th>
            sAddress
        </th>
        <th>
            sCity
        </th>
        <th>
            sZip
        </th>
        <th>
            sPhone
        </th>
        <th>
            sMobile
        </th>
        <th>
            sFax
        </th>
        <th>
            sEmailAddress
        </th>
        <th>
            dtDateAdd
        </th>
        <th>
            dtDateUpdate
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.sManufacturerName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sAddress)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sCity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sZip)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sPhone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sMobile)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sFax)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sEmailAddress)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dtDateAdd)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dtDateUpdate)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.kManufacturerId }) |
            @Html.ActionLink("Details", "Details", new { id=item.kManufacturerId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.kManufacturerId })
        </td>
    </tr>
}

</table>
